package com.oa.service;

import com.oa.dao.EmployeeDao;
import com.oa.dao.impl.EmployeeDaoImpl;
import com.oa.entity.Employee;

import java.util.List;

/**
 * @Description TODO
 * @Author hyl
 * @Date 2022/7/5 10:03
 **/
public class EmployeeServiceImpl implements EmployeeService {
	EmployeeDao employeeDao=new EmployeeDaoImpl();


	@Override
	public Employee findByParam(String empNo, String pwd) {
		return employeeDao.findByParam(empNo, pwd);
	}

	@Override
	public int add(Employee employee) {
		return employeeDao.add(employee);
	}

	@Override
	public List<Employee> findParam(String empName) {
		return employeeDao.findParam(empName);
	}

	@Override
	public int modify(Employee emp) {
		return employeeDao.modify(emp);
	}

	@Override
	public Employee findById(Integer id) {
		return employeeDao.findById(id);
	}

	@Override
	public int updatePwd(String newPwd, Integer id) {
		return employeeDao.updatePwd(newPwd, id);
	}
}
